package com.rental.web.service.impl;

import com.rental.model.entity.UserAccount;
import com.rental.common.result.AjaxResult;
import com.rental.quickenPoint.client.UserAccountClient;
import com.rental.web.service.UserAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Map;

@Service
public class UserAccountServiceImpl implements UserAccountService {

    @Autowired
    private UserAccountClient userAccountClient;


    /**
     * 邀请好友
     * @param list
     * @param userId
     * @return
     */
    @Override
    public Boolean invite(ArrayList<Long> list, Long userId) {
        return userAccountClient.invite(list,userId).getData();
    }

    /**
     *  查询用户账户
     * @param userId
     * @return
     */
    @Override
    public Integer getUserAccount(Long userId) {
        return userAccountClient.getUserAccount(userId).getData();
    }

    @Override
    public String pay(UserAccount userAccount) {
        return userAccountClient.payMoney(userAccount).getData();
    }
    public Boolean sendAccelerateValueByAddInfo(Long userId) {
        return userAccountClient.sendAccelerateValueByAddInfo(userId).getData();
    }


}
